﻿using System;
using System.Collections.Generic;

using Web.Generics;

using BolaoDNA.DomainModel;
using BolaoDNA.Repositories;

namespace BolaoDNA.Services
{
	public class UsuarioCadastradoService : GenericService<UsuarioCadastrado> {
		private readonly IUsuarioCadastradoRepository repository;
		public UsuarioCadastradoService(IUsuarioCadastradoRepository repository, ILogger logger) : base(repository, logger)
		{
			this.repository = repository;
		}

        public UsuarioCadastrado SelectByUsername(string username)
        {
            return repository.SelectByUsername(username);
        }
    }
}
